﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace ConsoleApplication1
{
    class testParser
    {
        static void Main(string[] args)
        {
            Parser p = new Parser();


            String dateiPfad = "dummy_message.txt";
            string line;
            List<String> list = new List<string>();




            try
            {
                System.IO.StreamReader file = new System.IO.StreamReader(Directory.GetCurrentDirectory() + "/dummy/" + dateiPfad);
                while ((line = file.ReadLine()) != null)
                {
                    list.Add(line);
                }
                file.Close();
            }
            catch (Exception e)
            {
                Console.WriteLine("Fehler beim laden der Datei " + dateiPfad);
            }

            p.SplitMessageFromServer(list);
            Console.ReadLine();

        }
    }
}
